<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php  use_stylesheet(array('internal.css','message-box.css','jquery.alert.css')); ?>
<?php  use_javascript(array('jquery-1.7.2.js','jquery.easydrag.js','jquery.alert.js')); ?>
</head>
<body>
  <div id="wrap">
    <header id="header">
      <h1><a href="#">奋斗的超人猫</a></h1>
      <div class="user_info">
        <p>您好，<a href="#">Hello</a>
                请您21天内跟换密码，否则后果自负
            |
            <a href="#">登出</a></p>
      </div>
      <div class="clear"></div>
    </header>
    <div id="inner">
      <aside id="aside">
        <nav>
          <?php foreach($admin_menu as $key=>$val ): ?>
          <li>
            <div class="menu menu_system"><a href="#"><strong><?php echo $key?></strong></a></div>
               <menu class="tree_menu" style="display:none;">
                 <?php foreach ($val as $k => $v ):?>
                     <li id="<?php echo $k?>"><?php echo anchor($v[0], $v[1]); ?></li>
                 <?php endforeach; ?>
               </menu>
           </li>
          <?php endforeach; ?>
        </nav>
      </aside>
      <?php include $showfile; ?>
      <div class="clear"></div>
      <div class="top"><a href="#">回顶部</a></div>
    </div>
  </div>
  <footer id="footer">
    <p class="version"><em><strong>Version 1.0.0</strong></em></p>
    <div class="clear"></div>
  </footer>
<script>
  $(document).ready(function(){//模版展开第一个
     <?php if( SHOW_ALL_MENU ):  ?>
         $(".tree_menu").slideDown('slow');
     <?php else: ?>
         $(".tree_menu").eq(0).slideDown('slow');
     <?php endif; ?>
     
     $(".menu_system").bind('click',function(){
       if( $(this).next(".tree_menu").css('display')=='block'){
         return;
       }
       $(".tree_menu").slideUp('slow');
       $(this).next(".tree_menu").slideDown('slow');
     });
  });  
</script>
</body>
</html>
